#include <iostream>
using namespace std;

class Person
{
public:
  Person(char *name,char *sex,int age):_name(name),_sex(sex),_age(age)
  {
    cout<<"aaaaaa"<<endl;
  }

  Person(const Person &p):_name(p._name),_sex(p._sex),_age(p._age)
  {
    cout<<"bbbbbbbb"<<endl;
  }

  Person(Person &&p):_name(move(p._name)),_sex(move(p._sex)),_age(move(p._age))
  {
    cout<<"ddddddddd"<<endl;
  }


  Person GetTempPerson()
  {
    Person tmp("lll","男",20);
    return tmp;
  }

  ~Person()
  {
    cout<<"ccccccccccc"<<endl;
  }
private:
  string _name;
  string _sex;
  int _age;
};

int main()
{
  Person res(GetTempPerson());
  return 0;
}
